


export const reducers = (state,action )=>{
    const {type,payload} = action
    switch(type){
      case "COUNTADD":
      return {...state,count:state.count+payload};
      break;

      case "changeCIty":
      return {...state,city:payload};
      break;

      case "changeWord":
      return {...state,word:payload};
      break;

      case "changeflag":
      return {...state,flag:payload};
      break;

      case "GETMOVIE":
      return {...state,movie:payload};
      break;
      
      default:
      return state; 
      break;
    }
}